// 产品分类对应表
const { Schema, SchemaTypes } = require('../schema');
class ProductCategory extends Schema {
    PropertyModelDataTemplate () {
        return {
            areaId: { type: SchemaTypes.ObjectId, required: true },
            mainCategoryId: { type: SchemaTypes.ObjectId, required: true },
            mainCategoryName: { type: SchemaTypes.String, required: true },
            subCategoryId: { type: SchemaTypes.ObjectId, required: true },
            subCategoryName: { type: SchemaTypes.String, required: true },
            productId: { type: SchemaTypes.ObjectId, required: true },
            description: { type: SchemaTypes.String, require: false }
        };
    }
}

module.exports = ProductCategory;
